from tornado import web
import asyncio
import os
from lib.urls import urls


BASE_DIR = os.path.dirname(__file__)

settings = {
    "cookie_secret": "jidkwc/ijuioqwjij75/df.dfs",
    "static_path": os.path.join(BASE_DIR, "static"),
    "template_path": os.path.join(BASE_DIR, "templates"),
}

app = web.Application(urls, **settings)
app.listen(8001)

loop = asyncio.get_event_loop()
loop.run_forever()
